package com.itfreer.data.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;

/**
 * 定义数据表类型
 */
@Component
public class TableTypeDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "d_table_type";
	}

	@Override
	protected List<DictionaryEntity> getDictionarys() {
		List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();

		DictionaryEntity item = new DictionaryEntity();
		item.setId("01");
		item.setCode("01");
		item.setDisplay("点数据");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("02");
		item.setCode("02");
		item.setDisplay("线数据");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("03");
		item.setCode("03");
		item.setDisplay("面数据");
		item.setOrder(3);
		list.add(item);

		item = new DictionaryEntity();
		item.setId("04");
		item.setCode("04");
		item.setDisplay("属性数据");
		item.setOrder(4);
		list.add(item);
		return list;
	}
}
